package com.ruoyi.system.service.impl;

import cn.hutool.core.util.StrUtil;
import com.ruoyi.common.core.utils.StringUtils;
import com.ruoyi.system.domain.ShareK;
import com.ruoyi.system.mapper.ShareKMapper;
import com.ruoyi.system.service.ShareKService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ShareKServiceImpl implements ShareKService {
    @Resource
    private ShareKMapper shareKMapper;
    @Override
    public void addShareK(ShareK shareK) {
       ShareK shareK1 = shareKMapper.getShare(shareK.getCode());
       if (null != shareK1){
           return;
       }
        shareKMapper.addShareK(shareK);
    }

    @Override
    public ShareK getStock(String code) {
        return shareKMapper.getStock(code);
    }
}
